<html manifest=node.manifest>

<head>
  <meta charset="utf-8">
  <title></title>
  <link rel="shortcut icon" type="image/ico" href="../../files/mixly.ico">
  <script type="text/javascript" src="../common/environment.js"></script>
  <script type="text/javascript" src="../common/jquery-1.11.3.min.js"></script>
  <script type="text/javascript" src="config.js"></script>
  <script type="text/javascript" src="../common/modules/board-config.js"></script>
  <script type="text/javascript" src="../common/modules/lazyload.js"></script>
  <script type="text/javascript" src="../common/modules/load-remove-script.js"></script>
  <script type="text/javascript" src="../common/modules/load-remove-css.js"></script>

  <script type="text/javascript" src="../common/core/blockly_compressed.js"></script>
  <script type="text/javascript" src="../common/core/base.js"></script>
  <script type="text/javascript" src="../common/core/python_compressed.js"></script>
  <script type="text/javascript" src="../micropython_esp32/others/variables.js"></script>
  <script type="text/javascript" src="../common/core/procedures.js"></script>

  <script type="text/javascript" src="../micropython_esp32/others/names.js"></script>
  <script src="../micropython_esp32/generators/python.js"></script>
  <script type="text/javascript" src="libraries/company_pin.js"></script>

  <script type="text/javascript" src="../common/js/drag.js"></script>
  <script type="text/javascript" src="../common/js/code.js"></script>
  <script type="text/javascript" src="../common/js/Blob.js"></script>
  <script type="text/javascript" src="../common/spin.js"></script>
  <script type="text/javascript" src="../common/js/FileSaver.min.js"></script>
  <script type="text/javascript" src="../common/js/blockly_helper.js"></script>

  <script type="text/javascript" src="../common/modules/serial-highcharts.js"></script>
  <script type="text/javascript" src="../common/modules/title.js"></script>
  <script type="text/javascript" src="../common/modules/mixlyClient/burn-upload.js"></script>
  <!---profiles-->
  <script type="text/javascript" src="libraries/myblock.js"></script>
  <script type="text/javascript" src="../python/blocks/variables.js"></script>
  <script type="text/javascript" src="../python/generators/variables.js"></script>

  <script src="../micropython_esp32/blocks/esp32_profile.js"></script>
  <!-- blocks file -->
  <script src="../micropython_esp32/blocks/pins.js"></script>
  <script src="../micropython_esp32/blocks/inout.js"></script>
  <script src="../python/blocks/control.js"></script>
  <script src="../micropython_esp32/blocks/system.js"></script>
  <script src="../python/blocks/math.js"></script>
  <script src="../python/blocks/text.js"></script>
  <script src="../python/blocks/lists.js"></script>
  <script src="../python/blocks/dicts.js"></script>
  <script src="../python/blocks/logic.js"></script>
  <script src="../micropython_esp32/blocks/serial.js"></script>
  <script src="../micropython_esp32/blocks/communicate.js"></script>
  <script src="../micropython_esp32/blocks/iot.js"></script>
  <script src="../micropython_esp32/blocks/sensor.js"></script>
  <script src="../micropython_esp32/blocks/network.js"></script>
  <script src="../python/blocks/storage.js"></script>
  <script src="../micropython_esp32/blocks/actuator.js"></script>
  <script src="../micropython_esp32/blocks/display.js"></script>
  <script src="../python/blocks/procedures.js"></script>
  <script src="../micropython_esp32/blocks/factory.js"></script>
  <script src="../micropython_esp32/blocks/blynk.js"></script>
  <script src="../python/blocks/tuple.js"></script>
  <script src="../python/blocks/set.js"></script>
  <script src="../python/blocks/html.js"></script>
  <!-- generator file -->
  <script src="../micropython_esp32/generators/pins.js"></script>
  <script src="../micropython_esp32/generators/inout.js"></script>
  <script src="../python/generators/control.js"></script>
  <script src="../micropython_esp32/generators/system.js"></script>
  <script src="../python/generators/math.js"></script>
  <script src="../python/generators/text.js"></script>
  <script src="../python/generators/lists.js"></script>
  <script src="../python/generators/dicts.js"></script>
  <script src="../python/generators/logic.js"></script>
  <script src="../micropython_esp32/generators/serial.js"></script>
  <script src="../micropython_esp32/generators/iot.js"></script>
  <script src="../micropython_esp32/generators/communicate.js"></script>
  <script src="../micropython_esp32/generators/sensor.js"></script>
  <script src="../python/generators/storage.js"></script>
  <script src="../micropython_esp32/generators/actuator.js"></script>
  <script src="../micropython_esp32/generators/display.js"></script>
  <script src="../micropython_esp32/generators/network.js"></script>
  <script src="../python/generators/procedures.js"></script>
  <script src="../micropython_esp32/generators/factory.js"></script>
  <script src="../micropython_esp32/generators/blynk.js"></script>
  <script src="../python/generators/set.js"></script>
  <script src="../python/generators/tuple.js"></script>
  <script src="../python/generators/html.js"></script>
  <!-- ace file -->
  <script src="../common/js/lib/ace/ace.js" type="application/javascript"></script>
  <script src="../common/js/lib/ace/ext-language_tools.js" type="application/javascript"></script>
  <script src="../python/blocks/utility.js"></script>
  <script src="../python/generators/utility.js"></script>
  <script src="../common/js/py2block_editor.js" type="application/javascript"></script>
  <script src="../micropython_esp32/converters/py2block_config.js" type="application/javascript"></script>
  <script src="../micropython_esp32/converters/inout.js" type="application/javascript"></script>
  <script src="../micropython_esp32/converters/network.js" type="application/javascript"></script>
  <script src="../micropython_esp32/converters/iot.js" type="application/javascript"></script>
  <script src="../micropython_esp32/converters/serial.js" type="application/javascript"></script>
  <script src="../micropython_esp32/converters/sensor.js" type="application/javascript"></script>
  <script src="../micropython_esp32/converters/communicate.js" type="application/javascript"></script>
  <script src="../micropython_esp32/converters/display.js" type="application/javascript"></script>
  <script src="../micropython_esp32/converters/actuator.js" type="application/javascript"></script>
  <script src="../python/converters/control.js" type="application/javascript"></script>
  <script src="../python/converters/math.js" type="application/javascript"></script>
  <script src="../python/converters/logic.js" type="application/javascript"></script>
  <script src="../python/converters/text.js" type="application/javascript"></script>
  <script src="../python/converters/lists.js" type="application/javascript"></script>
  <script src="../python/converters/tuple.js" type="application/javascript"></script>
  <script src="../python/converters/dicts.js" type="application/javascript"></script>
  <script src="../python/converters/storage.js" type="application/javascript"></script>
  <script src="../python/converters/set.js" type="application/javascript"></script>
  <script src="../micropython_esp32/converters/control.js" type="application/javascript"></script>
  <script src="../common/js/python_to_blockly.js" type="application/javascript"></script>
  <script src="../common/js/skulpt/dist/skulpt.min.js" type="application/javascript"></script>
  <script src="../common/js/skulpt/dist/skulpt-stdlib.js" type="application/javascript"></script>
  <script src="../common/layui/layui.js"></script>
  <link rel="stylesheet" type="text/css" href="../common/layui/css/layui.css" />
  <link rel="stylesheet" type="text/css" href="css/color_esp32_mixgo.css" />
  <link rel="stylesheet" type="text/css" href="../common/css/ACEfont.css" />
  <link rel="stylesheet" type="text/css" href="../common/css/fontello.css" />
  <link rel="stylesheet" type="text/css" href="../common/css/nav.css" />
  <link rel="stylesheet" type="text/css" href="../common/css/library.css" />
  <script type="text/javascript" src="../common/dap.umd.js"></script>
  <!-- upload -->
  <script src="../common/py-init.js"></script>
  <script src="../common/interface-init.js"></script>
</head>

<body onload="init()">
  <xml id="toolbox" style="display: none">
    <category name="" id="catInOut" colour="20">
      <block type="inout_highlow"></block>
      <block type="inout_digital_init">
        <value name="PIN">
          <shadow type="pins_digital_pin">
          </shadow>
        </value>
      </block>
      <block type="inout_digital_write">
        <value name="PIN">
          <shadow type="pins_digital"></shadow>
        </value>
        <value name="STAT">
          <shadow type="inout_highlow">
          </shadow>
        </value>
      </block>
      <block type="inout_digital_read">
        <value name="PIN">
          <shadow type="pins_digital"></shadow>
        </value>
      </block>
      <block type="inout_analog_read_init">
        <value name="PIN">
          <shadow type="pins_analog_pin"></shadow>
        </value>
      </block>
      <block type="inout_analog_atten">
        <value name="PIN">
          <shadow type="pins_analog"></shadow>
        </value>
      </block>
      <block type="inout_analog_read">
        <value name="PIN">
          <shadow type="pins_analog"></shadow>
        </value>
      </block>
      <block type="inout_pwm_analog_write_init">
        <value name="PIN">
          <shadow type="pins_pwm_pin"></shadow>
        </value>
      </block>
      <block type="inout_pwm_analog_write">
        <value name="PIN">
          <shadow type="pins_pwm"></shadow>
        </value>
        <value name="NUM">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="inout_pwm_analog_write_set_freq">
        <value name="PIN">
          <shadow type="pins_pwm"></shadow>
        </value>
        <value name="NUM">
          <shadow type="math_number">
            <field name="NUM">2000</field>
          </shadow>
        </value>
      </block>
      <block type="inout_pin_pressed_init">
        <value name="PIN">
          <shadow type="pins_touch_pin">
          </shadow>
        </value>
      </block>
      <block type="inout_pin_pressed">
        <value name="pin">
          <shadow type="pins_touch">
          </shadow>
        </value>
      </block>
      <block type="inout_pin_attachInterrupt">
        <value name="PIN">
          <shadow type="pins_digital_pin"></shadow>
        </value>
        <value name="DO">
          <shadow type="factory_block_return">
            <field name="VALUE">attachInterrupt_func</field>
          </shadow>
        </value>
      </block>
      <block type="procedures_defnoreturn">
        <mutation>
          <arg name="x"></arg>
        </mutation>
        <field name="NAME">attachInterrupt_func</field>
        <statement name="STACK">
          <block type="controls_pass"></block>
        </statement>
      </block>
      <block type="inout_analog_write_init">
        <value name="PIN">
          <shadow type="pins_dac_pin"></shadow>
        </value>
      </block>
      <block type="inout_analog_write">
        <value name="PIN">
          <shadow type="pins_dac"></shadow>
        </value>
        <value name="NUM">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
    </category>
    <category id="catControl" colour="120">
      <block type="controls_whileUntil">
        <value name="BOOL">
          <shadow type="logic_boolean">
          </shadow>
        </value>
      </block>

      <block type="controls_delay">
        <value name="DELAY_TIME">
          <shadow type="math_number">
            <field name="NUM">1000</field>
          </shadow>
        </value>
      </block>
      <block type="controls_if"></block>
      <block type="controls_forEach">
        <value name="LIST">
          <shadow type="list_many_input">
            <field name="CONTENT">0,1,2,3</field>
          </shadow>
          <block type="controls_range">
            <value name="FROM">
              <shadow type="math_number">
                <field name="NUM">0</field>
              </shadow>
            </value>
            <value name="TO">
              <shadow type="math_number">
                <field name="NUM">5</field>
              </shadow>
            </value>
            <value name="STEP">
              <shadow type="math_number">
                <field name="NUM">1</field>
              </shadow>
            </value>
          </block>
        </value>
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">i</field>
          </shadow>
        </value>
      </block>
      <block type="do_while">
      </block>
      <block type="controls_pass"></block>
      <block type="controls_flow_statements"></block>
      <block type="controls_try_finally">
        <value name="IF1">
          <shadow type="factory_block_return">
            <field name="VALUE">sub_cb</field>
          </shadow>
        </value>
      </block>
      <block type="controls_thread">
        <value name="callback">
          <shadow type="factory_block_return">
            <field name="VALUE">testThread</field>
          </shadow>
        </value>
        <value name="VAR">
          <block type="tuple_create_with_noreturn" inline="true">
            <mutation items="0"></mutation>
          </block>
        </value>
      </block>
      <block type="procedures_defnoreturn" inline="false">
        <field name="NAME">testThread</field>
        <statement name="STACK">
          <block type="controls_whileUntil">
            <field name="MODE">WHILE</field>
            <value name="BOOL">
              <block type="logic_boolean">
                <field name="BOOL">TRUE</field>
              </block>
            </value>
            <statement name="DO">
              <block type="system_print" inline="false">
                <value name="VAR">
                  <block type="text">
                    <field name="TEXT">Hello Mixly from Thread!</field>
                  </block>
                </value>
                <next>
                  <block type="controls_delay">
                    <field name="Time">ms</field>
                    <value name="DELAY_TIME">
                      <block type="math_number">
                        <field name="NUM">10</field>
                      </block>
                    </value>
                  </block>
                </next>
              </block>
            </statement>
          </block>
        </statement>
      </block>
      <block type="system_timer_init">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">tim</field>
          </shadow>
        </value>
      </block>
      <block type="system_timer">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">tim</field>
          </shadow>
        </value>
        <value name="period">
          <shadow type="math_number">
            <field name="NUM">1000</field>
          </shadow>
        </value>
        <value name="callback">
          <shadow type="factory_block_return">
            <field name="VALUE">tim_callback</field>
          </shadow>
        </value>
      </block>
      <block type="procedures_defnoreturn">
        <mutation>
          <arg name="tim"></arg>
        </mutation>
        <field name="NAME">tim_callback</field>
        <statement name="STACK">
          <block type="system_print">
            <value name="VAR">
              <block type="number_to_text">
                <value name="VAR">
                  <block type="controls_millis"></block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
      <block type="controls_millis"></block>
      <block type="system_ticks_diff">
        <value name="END">
          <block type="controls_millis"></block>
          <shadow type="math_number">
            <field name="NUM">500</field>
          </shadow>
        </value>
        <value name="START">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
    </category>
    <category id="catMath" colour="230">
      <block type="math_number"></block>
      <block type="math_constant"></block>
      <block type="math_trig">
        <value name="NUM">
          <shadow type="math_number">
            <field name="NUM">90</field>
          </shadow>
        </value>
      </block>
      <block type="text_to_number">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">x</field>
          </shadow>
        </value>
      </block>
      <block type="math_dec">
        <value name="NUM">
          <shadow type="math_number">
            <field name="NUM">15</field>
          </shadow>
        </value>
      </block>
      <block type="math_arithmetic">
        <value name="A">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <value name="B">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
      </block>
      <block type="math_bit">
        <value name="A">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="B">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="math_selfcalcu">
        <value name="A">
          <shadow type="variables_get">
            <field name="VAR">a</field>
          </shadow>
        </value>
        <value name="B">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
      </block>
      <block type="math_to_int">
        <value name="A">
          <shadow type="math_number">
            <field name="NUM">0.998</field>
          </shadow>
        </value>
      </block>
      <block type="math_max_min">
        <value name="A">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <value name="B">
          <shadow type="math_number">
            <field name="NUM">2</field>
          </shadow>
        </value>
      </block>
      <block type="math_round">
        <value name="VALUE">
          <shadow type="math_number">
            <field name="NUM">4.8</field>
          </shadow>
        </value>
        <value name="VAR">
          <shadow type="math_number">
            <field name="NUM">2</field>
          </shadow>
        </value>
      </block>
      <block type="math_random_seed">
        <value name="NUM">
          <block type="controls_millis"></block>
          <shadow type="math_number">
            <field name="NUM">997</field>
          </shadow>
        </value>
      </block>
      <block type="math_random">
        <value name="FROM">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <value name="TO">
          <shadow type="math_number">
            <field name="NUM">100</field>
          </shadow>
        </value>
      </block>
      <block type="math_number_base_conversion">
        <value name="NUM">
          <shadow type="math_number">
            <field name="NUM">1010</field>
          </shadow>
      </block>
      <block type="math_constrain">
        <value name="VALUE">
          <shadow type="math_number">
            <field name="NUM">1000</field>
          </shadow>
        </value>
        <value name="LOW">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <value name="HIGH">
          <shadow type="math_number">
            <field name="NUM">100</field>
          </shadow>
        </value>
      </block>
      <block type="math_map">
        <value name="NUM">
          <shadow type="math_number">
            <field name="NUM">50</field>
          </shadow>
        </value>
        <value name="fromLow">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <value name="fromHigh">
          <shadow type="math_number">
            <field name="NUM">100</field>
          </shadow>
        </value>
        <value name="toLow">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <value name="toHigh">
          <shadow type="math_number">
            <field name="NUM">1000</field>
          </shadow>
        </value>
      </block>
    </category>
    <category id="catLogic" colour="210">
      <block type="logic_compare"></block>
      <block type="logic_compare_continous">
        <value name="A">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="B">
          <shadow type="variables_get">
            <field name="VAR">x</field>
          </shadow>
        </value>
        <value name="C">
          <shadow type="math_number">
            <field name="NUM">2</field>
          </shadow>
        </value>
      </block>
      <block type="logic_operation"></block>
      <block type="logic_negate"></block>
      <block type="logic_boolean"></block>
      <block type="logic_null"></block>
      <block type="logic_true_or_false"></block>
      <block type="logic_is_in">
        <value name="A">
          <shadow type="variables_get">
            <field name="VAR">x</field>
          </shadow>
        </value>
        <value name="B">
          <shadow type="list_many_input">
            <field name="CONTENT">0,1,2,3</field>
          </shadow>
        </value>
      </block>
      <block type="logic_is">
        <value name="A">
          <shadow type="list_many_input">
            <field name="CONTENT">0,1,2,3</field>
          </shadow>
        </value>
        <value name="B">
          <shadow type="list_many_input">
            <field name="CONTENT">0,1,2,3</field>
          </shadow>
        </value>
      </block>
      <block type="logic_tobool">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">x</field>
          </shadow>
        </value>
      </block>
    </category>
    <category id="catText" colour="160">
      <block type="text">
        <field name="TEXT">Mixly</field>
      </block>
      <block type="text_textarea">
      </block>
      <block type="text_join">
        <value name="A">
          <shadow type="text">
            <field name="TEXT">Hello</field>
          </shadow>
        </value>
        <value name="B">
          <shadow type="text">
            <field name="TEXT">Mixly</field>
          </shadow>
        </value>
      </block>

      <block type="ascii_to_char">
        <value name="VAR">
          <shadow type="math_number">
            <field name="NUM">65</field>
          </shadow>
        </value>
      </block>
      <block type="char_to_ascii">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">a</field>
          </shadow>
        </value>
      </block>
      <block type="number_to_text">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">x</field>
          </shadow>
        </value>
      </block>
      <block type="text_length">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Mixly</field>
          </shadow>
        </value>
      </block>
      <block type="text_equals_starts_ends">
        <value name="STR1">
          <shadow type="text">
            <field name="TEXT"></field>
          </shadow>
        </value>
        <value name="STR2">
          <shadow type="text">
            <field name="TEXT"></field>
          </shadow>
        </value>
      </block>
      <block type="text_char_at">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Mixly</field>
          </shadow>
        </value>
        <value name="AT">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="text_substring">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Mixly</field>
          </shadow>
        </value>
        <value name="AT1">
          <shadow type="math_indexer_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="AT2">
          <shadow type="math_indexer_number">
            <field name="NUM">2</field>
          </shadow>
        </value>
      </block>
      <block type="text_random_char">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Mixly</field>
          </shadow>
        </value>
      </block>
      <block type="text_encode">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Mixly</field>
          </shadow>
        </value>
      </block>
      <block type="text_capital">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Hello,mixly</field>
          </shadow>
        </value>
      </block>
      <block type="text_center">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Hello,mixly</field>
          </shadow>
        </value>
        <value name="WID">
          <shadow type="math_number">
            <field name="NUM">50</field>
          </shadow>
        </value>
        <value name="Symbol">
          <shadow type="text">
            <field name="TEXT">*</field>
          </shadow>
        </value>
      </block>
      <block type="text_find">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Hello,mixly</field>
          </shadow>
        </value>
        <value name="STR">
          <shadow type="text">
            <field name="TEXT">l</field>
          </shadow>
        </value>
      </block>
      <block type="text_join_seq">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">--</field>
          </shadow>
        </value>
        <value name="LIST">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
      </block>
      <block type="text_replace">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Hello,mixly</field>
          </shadow>
        </value>
        <value name="STR1">
          <shadow type="text">
            <field name="TEXT">mixly</field>
          </shadow>
        </value>
        <value name="STR2">
          <shadow type="text">
            <field name="TEXT">mixpy</field>
          </shadow>
        </value>
      </block>
      <block type="text_split">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">I love mixly！</field>
          </shadow>
        </value>
        <value name="VAL">
          <shadow type="text">
            <field name="TEXT"> </field>
          </shadow>
        </value>
      </block>
      <block type="text_strip">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT"> I love mixly </field>
          </shadow>
        </value>
      </block>
      <block type="text_format_noreturn">
        <mutation items="1"></mutation>
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Random No. is {}</field>
          </shadow>
        </value>
        <value name="ADD0">
          <block type="math_random">
            <field name="TYPE">int</field>
            <value name="FROM">
              <shadow type="math_number">
                <field name="NUM">1</field>
              </shadow>
            </value>
            <value name="TO">
              <shadow type="math_number">
                <field name="NUM">100</field>
              </shadow>
            </value>
          </block>
        </value>
      </block>
      <block type="text_eval">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">input('1+2*3')</field>
          </shadow>
        </value>
      </block>
    </category>
    <category id="catMicropyLists" colour="260">
      <block type="lists_create_with"></block>
      <block type="variables_set">
        <field name="VAR">mylist</field>
        <value name="VALUE">
          <block type="list_many_input">
            <field name="CONTENT">1,2,3,4,5</field>
          </block>
        </value>
      </block>
      <!--<block type="lists_create_with_text"></block>  -->
      <block type="lists_get_index">
        <value name="LIST">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
        <value name="AT">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="lists_get_sublist">
        <value name="LIST">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
        <value name="AT1">
          <shadow type="math_indexer_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="AT2">
          <shadow type="math_indexer_number">
            <field name="NUM">2</field>
          </shadow>
        </value>
      </block>
      <block type="lists_get_random_item">
        <value name="LIST">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
      </block>
      <block type="lists_get_random_sublist">
        <value name="LIST">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
        <value name="VAR">
          <shadow type="math_number">
            <field name="NUM">2</field>
          </shadow>
        </value>
      </block>
      <block type="list_trig">
        <value name="data">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
      </block>
      <block type="lists_find">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
        <value name="data">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="lists_set_index">
        <value name="LIST">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
        <value name="AT">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="TO">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="lists_insert_value">
        <value name="LIST">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
        <value name="AT">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="VALUE">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="lists_append_extend">
        <value name="LIST">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
        <value name="DATA">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="lists_remove_at">
        <value name="LIST">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
        <value name="DATA">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="lists_pop">
        <value name="LIST">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
        <value name="VALUE">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="lists_sort">
        <value name="LIST">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
      </block>
      <block type="lists_reverse">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
      </block>
      <block type="lists_clear">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
      </block>
      <!--<block type="lists_change_to">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">mylist</field>
          </shadow>
        </value>
      </block>-->
      <block type="list_tolist">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">x</field>
          </shadow>
        </value>
      </block>
      <block type="lists_zip">
        <mutation items="2"></mutation>
        <value name="ADD0">
          <block type="list_many_input">
            <field name="CONTENT">0,1,2,3</field>
          </block>
        </value>
        <value name="ADD1">
          <block type="list_many_input">
            <field name="CONTENT">0,1,2,3</field>
          </block>
        </value>
      </block>
    </category>
    <category id="catTuple" colour="195">
      <block type="tuple_create_with"></block>
      <block type="variables_set">
        <field name="VAR">mytup</field>
        <value name="VALUE">
          <block type="tuple_create_with_text_return">
            <field name="TEXT">1,2,3,4,5</field>
          </block>
        </value>
      </block>
      <!--<block type="tuple_create_with_text2"></block>-->
      <block type="tuple_getIndex">
        <value name="TUP">
          <shadow type="variables_get">
            <field name="VAR">mytup</field>
          </shadow>
        </value>
        <value name="AT">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="tuple_get_sublist">
        <value name="LIST">
          <shadow type="variables_get">
            <field name="VAR">mytup</field>
          </shadow>
        </value>
        <value name="AT1">
          <shadow type="math_indexer_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="AT2">
          <shadow type="math_indexer_number">
            <field name="NUM">2</field>
          </shadow>
        </value>
      </block>
      <block type="tuple_get_random_item">
        <value name="TUP">
          <shadow type="variables_get">
            <field name="VAR">mytup</field>
          </shadow>
        </value>
      </block>
      <block type="tuple_length">
        <value name="TUP">
          <shadow type="variables_get">
            <field name="VAR">mytup</field>
          </shadow>
        </value>
      </block>
      <block type="tuple_max">
        <value name="TUP">
          <shadow type="variables_get">
            <field name="VAR">mytup</field>
          </shadow>
        </value>
      </block>
      <block type="tuple_del">
        <value name="TUP">
          <shadow type="variables_get">
            <field name="VAR">mytup</field>
          </shadow>
        </value>
      </block>
      <block type="tuple_join">
        <value name="TUP1">
          <shadow type="variables_get">
            <field name="VAR">mytup1</field>
          </shadow>
        </value>
        <value name="TUP2">
          <shadow type="variables_get">
            <field name="VAR">mytup2</field>
          </shadow>
        </value>
      </block>
      <!--<block type="tuple_change_to">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">mytup</field>
          </shadow>
        </value>
      </block>-->
      <block type="tuple_totuple">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">x</field>
          </shadow>
        </value>
      </block>
    </category>
    <category id="catDicts" colour="345">
      <block type="dicts_create_with"></block>
      <block type="dicts_keys">
        <value name="DICT">
          <shadow type="variables_get">
            <field name="VAR">mydict</field>
          </shadow>
        </value>
      </block>
      <block type="dicts_get">
        <value name="DICT">
          <shadow type="variables_get">
            <field name="VAR">mydict</field>
          </shadow>
        </value>
        <value name="KEY">
          <shadow type="text">
            <field name="TEXT">key</field>
          </shadow>
        </value>
      </block>
      <block type="dicts_get_default">
        <value name="DICT">
          <shadow type="variables_get">
            <field name="VAR">mydict</field>
          </shadow>
        </value>
        <value name="KEY">
          <shadow type="text">
            <field name="TEXT">key</field>
          </shadow>
        </value>
        <value name="VAR">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="dicts_add_or_change">
        <value name="DICT">
          <shadow type="variables_get">
            <field name="VAR">mydict</field>
          </shadow>
        </value>
        <value name="KEY">
          <shadow type="text">
            <field name="TEXT">key</field>
          </shadow>
        </value>
        <value name="VAR">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="dicts_delete">
        <value name="DICT">
          <shadow type="variables_get">
            <field name="VAR">mydict</field>
          </shadow>
        </value>
        <value name="KEY">
          <shadow type="text">
            <field name="TEXT">key</field>
          </shadow>
        </value>
      </block>
      <block type="dicts_pop">
        <value name="DICT">
          <shadow type="variables_get">
            <field name="VAR">mydict</field>
          </shadow>
        </value>
        <value name="KEY">
          <shadow type="text">
            <field name="TEXT">key</field>
          </shadow>
        </value>
      </block>
      <block type="dicts_setdefault">
        <value name="DICT">
          <shadow type="variables_get">
            <field name="VAR">mydict</field>
          </shadow>
        </value>
        <value name="KEY">
          <shadow type="text">
            <field name="TEXT">key</field>
          </shadow>
        </value>
        <value name="VAR">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="dicts_clear">
        <value name="DICT">
          <shadow type="variables_get">
            <field name="VAR">mydict</field>
          </shadow>
        </value>
      </block>
      <!--<block type="dicts_items">
        <value name="DICT">
          <shadow type="variables_get">
            <field name="VAR">mydict</field>
          </shadow>
        </value>
      </block>-->
      <block type="dicts_values">
        <value name="DICT">
          <shadow type="variables_get">
            <field name="VAR">mydict</field>
          </shadow>
        </value>
      </block>
      <block type="dicts_length">
        <value name="DICT">
          <shadow type="variables_get">
            <field name="VAR">mydict</field>
          </shadow>
        </value>
      </block>
      <block type="dicts_deldict">
        <value name="DICT">
          <shadow type="variables_get">
            <field name="VAR">mydict</field>
          </shadow>
        </value>
      </block>
      <block type="dicts_todict">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">x</field>
          </shadow>
        </value>
      </block>
    </category>
    <category id="catSet" colour="100">
      <block type="set_create_with"></block>
      <block type="variables_set">
        <field name="VAR">s1</field>
        <value name="VALUE">
          <block type="set_create_with_text_return">
            <field name="TEXT">1,2,3,4,5</field>
          </block>
        </value>
      </block>
      <block type="set_length">
        <value name="SET">
          <shadow type="variables_get">
            <field name="VAR">s1</field>
          </shadow>
        </value>
      </block>
      <block type="set_pop">
        <value name="SET">
          <shadow type="variables_get">
            <field name="VAR">s1</field>
          </shadow>
        </value>
      </block>
      <block type="set_operate">
        <value name="SET1">
          <shadow type="variables_get">
            <field name="VAR">s1</field>
          </shadow>
        </value>
        <value name="SET2">
          <shadow type="variables_get">
            <field name="VAR">s2</field>
          </shadow>
        </value>
      </block>
      <block type="set_operate_update">
        <value name="SET1">
          <shadow type="variables_get">
            <field name="VAR">s1</field>
          </shadow>
        </value>
        <value name="SET2">
          <shadow type="variables_get">
            <field name="VAR">s2</field>
          </shadow>
        </value>
      </block>
      <block type="set_add_discard">
        <value name="SET">
          <shadow type="variables_get">
            <field name="VAR">s1</field>
          </shadow>
        </value>
        <value name="data">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="set_update">
        <value name="SET">
          <shadow type="variables_get">
            <field name="VAR">s1</field>
          </shadow>
        </value>
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Mixly</field>
          </shadow>
        </value>
      </block>
      <block type="set_sub">
        <value name="SET1">
          <shadow type="variables_get">
            <field name="VAR">s1</field>
          </shadow>
        </value>
        <value name="SET2">
          <shadow type="variables_get">
            <field name="VAR">s2</field>
          </shadow>
        </value>
      </block>
      <block type="set_toset">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">x</field>
          </shadow>
        </value>
      </block>
    </category>
    <category id="catVar" colour="330" custom="VARIABLE">
    </category>
    <category id="catFun" custom="PROCEDURE" colour="290"></category>
    <category id="catSerialPort" colour="65">
      <block type="system_print">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Mixly</field>
          </shadow>
        </value>
      </block>
      <block type="system_print_inline">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Mixly</field>
          </shadow>
        </value>
      </block>
      <block type="system_print_end">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">Mixly</field>
          </shadow>
        </value>
        <value name="END">
          <shadow type="text">
            <field name="TEXT">,</field>
          </shadow>
        </value>
      </block>
      <block type="system_print_many">
        <mutation items="2"></mutation>
        <value name="ADD0">
          <block type="text">
            <field name="TEXT">Hello</field>
          </block>
        </value>
        <value name="ADD1">
          <block type="text">
            <field name="TEXT">Mixly</field>
          </block>
        </value>
      </block>
      <block type="system_input">
        <value name="VAR">
          <shadow type="text">
            <field name="TEXT">prompt</field>
          </shadow>
        </value>
      </block>
      <block type="serial_softserial"></block>
      <block type="serial_print">
        <value name="CONTENT">
          <shadow type="text">
            <field name="TEXT">Mixly</field>
          </shadow>
        </value>
      </block>
      <block type="serial_println">
        <value name="CONTENT">
          <shadow type="text">
            <field name="TEXT">Mixly</field>
          </shadow>
        </value>
      </block>
      <block type="serial_print_hex">
        <value name="CONTENT">
          <shadow type="math_number">
            <field name="NUM">0XFF00FF</field>
          </shadow>
        </value>
      </block>
      <block type="serial_any"></block>
      <block type="serial_readstr"></block>
      <block type="serial_readline"></block>
    </category>
    <category id="catOnBoard" name="catOnBoard" colour="65">
      <category id="catOnBoardSensor" name="catOnBoardSensor" colour="40">
        <block type="sensor_mixgo_button_is_pressed">
          <value name="btn">
            <shadow type="pins_button">
            </shadow>
          </value>
        </block>
        <block type="sensor_mixgo_button_was_pressed">
          <value name="btn">
            <shadow type="pins_button">
            </shadow>
          </value>
        </block>
        <block type="sensor_mixgo_button_get_presses">
          <value name="btn">
            <shadow type="pins_button">
            </shadow>
          </value>
          <value name="VAR">
            <shadow type="math_number">
              <field name="NUM">1</field>
            </shadow>
          </value>
        </block>
        <block type="sensor_mixgo_button_attachInterrupt">
          <value name="btn">
            <shadow type="pins_button">
            </shadow>
          </value>
          <value name="DO">
            <shadow type="factory_block_return">
              <field name="VALUE">attachInterrupt_func</field>
            </shadow>
          </value>
        </block>
        <block type="procedures_defnoreturn">
          <mutation>
            <arg name="x"></arg>
          </mutation>
          <field name="NAME">attachInterrupt_func</field>
          <statement name="STACK">
            <block type="controls_pass"></block>
          </statement>
        </block>
        <block type="sensor_mixgo_pin_pressed">
          <value name="button">
            <shadow type="number1">
            </shadow>
          </value>
        </block>
        <block type="sensor_mixgo_pin_near"></block>
        <block type="sensor_mixgo_light"></block>
        <block type="sensor_mixgo_sound"></block>
        <block type="sensor_mpu9250_gesture">
          <value name="SUB">
            <shadow type="variables_get">
              <field name="VAR">mpu</field>
            </shadow>
          </value>
        </block>
        <block type="sensor_mpu9250_get_acceleration">
          <value name="SUB">
            <shadow type="variables_get">
              <field name="VAR">mpu</field>
            </shadow>
          </value>
        </block>
        <block type="sensor_mpu9250_get_magnetic">
          <value name="SUB">
            <shadow type="variables_get">
              <field name="VAR">mpu</field>
            </shadow>
          </value>
        </block>
        <block type="sensor_mpu9250_get_gyro">
          <value name="SUB">
            <shadow type="variables_get">
              <field name="VAR">mpu</field>
            </shadow>
          </value>
        </block>
        <block type="sensor_mpu9250_temperature">
          <value name="SUB">
            <shadow type="variables_get">
              <field name="VAR">mpu</field>
            </shadow>
          </value>
        </block>
        <block type="sensor_mpu9250_calibrate_compass">
          <value name="SUB">
            <shadow type="variables_get">
              <field name="VAR">compass</field>
            </shadow>
          </value>
        </block>
        <block type="sensor_mpu9250_field_strength">
          <value name="SUB">
            <shadow type="variables_get">
              <field name="VAR">compass</field>
            </shadow>
          </value>
        </block>
        <block type="sensor_compass_reset">
          <value name="SUB">
            <shadow type="variables_get">
              <field name="VAR">compass</field>
            </shadow>
          </value>
        </block>
        <block type="RTC_set_datetime">
          <value name="SUB">
            <shadow type="variables_get">
              <field name="VAR">rtc</field>
            </shadow>
          </value>
          <value name="year">
            <shadow type="math_number">
              <field name="NUM">2018</field>
            </shadow>
          </value>
          <value name="month">
            <shadow type="math_number">
              <field name="NUM">9</field>
            </shadow>
          </value>
          <value name="day">
            <shadow type="math_number">
              <field name="NUM">14</field>
            </shadow>
          </value>
          <value name="weekday">
            <shadow type="math_number">
              <field name="NUM">5</field>
            </shadow>
          </value>
          <value name="hour">
            <shadow type="math_number">
              <field name="NUM">14</field>
            </shadow>
          </value>
          <value name="minute">
            <shadow type="math_number">
              <field name="NUM">20</field>
            </shadow>
          </value>
          <value name="second">
            <shadow type="math_number">
              <field name="NUM">45</field>
            </shadow>
          </value>
          <value name="millisecond">
            <shadow type="math_number">
              <field name="NUM">0</field>
            </shadow>
          </value>
        </block>
        <block type="RTC_get_time">
          <value name="SUB">
            <shadow type="variables_get">
              <field name="VAR">rtc</field>
            </shadow>
          </value>
        </block>
      </category>
      <category id="catOnBoardActuator" name="catOnBoardActuator" colour="100">
        <block type="actuator_led_bright">
          <value name="led">
            <shadow type="number">
            </shadow>
          </value>
          <value name="bright">
            <shadow type="ledswitch">
            </shadow>
          </value>
        </block>
        <block type="actuator_get_led_bright">
          <value name="led">
            <shadow type="number">
            </shadow>
          </value>
        </block>
        <block type="actuator_led_brightness">
          <value name="led">
            <shadow type="number">
            </shadow>
          </value>
          <value name="bright">
            <shadow type="math_number">
              <field name="NUM">1023</field>
            </shadow>
          </value>
        </block>
        <block type="esp32_onboard_music_pitch">
          <value name="pitch">
            <shadow type="pins_tone_notes">
              <field name="PIN">440</field>
            </shadow>
          </value>
        </block>
        <block type="esp32_onboard_music_pitch_with_time">
          <value name="pitch">
            <shadow type="pins_tone_notes">
              <field name="PIN">440</field>
            </shadow>
          </value>
          <value name="time">
            <shadow type="math_number">
              <field name="NUM">1000</field>
            </shadow>
          </value>
        </block>
        <block type="esp32_onboard_music_stop">
          <value name="PIN">
            <shadow type="pins_pwm_pin">
              <field name="PIN">0</field>
            </shadow>
          </value>
        </block>
        <block type="esp32_onboard_music_play_list">
          <value name="LIST">
            <shadow type="pins_playlist"></shadow>
          </value>
          <value name="PIN">
            <shadow type="pins_pwm_pin">
              <field name="PIN">0</field>
            </shadow>
          </value>
        </block>
        <!--<block type="esp32_mixgo_music_play_list_show">
          <value name="LIST">
            <shadow type="pins_playlist"></shadow>
          </value>
          <value name="PIN">
            <shadow type="pins_pwm_pin">
              <field name="PIN">27</field>
            </shadow>
          </value>
        </block>-->
        <block type="esp32_music_set_tempo">
          <value name="TICKS">
            <shadow type="math_number">
              <field name="NUM">4</field>
            </shadow>
          </value>
          <value name="BPM">
            <shadow type="math_number">
              <field name="NUM">120</field>
            </shadow>
          </value>
        </block>
        <block type="esp32_music_get_tempo"></block>
        <block type="esp32_music_reset"></block>
        <block type="actuator_onboard_neopixel_rgb">
          <value name="_LED_">
            <shadow type="math_number">
              <field name="NUM">0</field>
            </shadow>
          </value>
          <value name="RVALUE">
            <shadow type="math_number">
              <field name="NUM">0</field>
            </shadow>
          </value>
          <value name="GVALUE">
            <shadow type="math_number">
              <field name="NUM">0</field>
            </shadow>
          </value>
          <value name="BVALUE">
            <shadow type="math_number">
              <field name="NUM">0</field>
            </shadow>
          </value>
        </block>
        <block type="actuator_onboard_neopixel_write">
        </block>
      </category>
      <category id="catOnBoardDisplay" name="catOnBoardDisplay" colour="180">
        <block type="display_help"></block>
        <block type="display_show_image_or_string">
          <value name="data">
            <shadow type="pins_builtinimg"></shadow>
          </value>
        </block>
        <block type="display_scroll_string">
          <value name="data">
            <shadow type="text">
              <field name="TEXT">Mixly</field>
            </shadow>
          </value>
        </block>
        <block type="display_show_image_or_string_delay">
          <value name="data">
            <shadow type="pins_builtinimg"></shadow>
          </value>
          <value name="time">
            <shadow type="math_number">
              <field name="NUM">120</field>
            </shadow>
          </value>
        </block>
        <block type="display_show_static">
          <value name="data">
            <shadow type="text">
              <field name="TEXT">abc</field>
            </shadow>
          </value>
        </block>
        <block type="display_scroll_string_delay">
          <value name="data">
            <shadow type="text">
              <field name="TEXT">Mixly</field>
            </shadow>
          </value>
          <value name="time">
            <shadow type="math_number">
              <field name="NUM">120</field>
            </shadow>
          </value>
        </block>
        <block type="display_image_create"></block>
        <block type="display_image_builtins"></block>
        <block type="display_animate"></block>
        <block type="image_arithmetic">
          <value name="A">
            <shadow type="pins_builtinimg"></shadow>
          </value>>
          <value name="B">
            <shadow type="pins_builtinimg"></shadow>
          </value>
        </block>
        <block type="image_shift">
          <value name="val">
            <shadow type="math_number">
              <field name="NUM">1</field>
            </shadow>
          </value>
          <value name="img">
            <shadow type="pins_builtinimg"></shadow>
          </value>
        </block>
        <block type="display_get_pixel">
          <value name="x">
            <shadow type="pins_exlcdh"></shadow>
          </value>
          <value name="y">
            <shadow type="pins_exlcdv"></shadow>
          </value>
        </block>
        <block type="display_bright_point">
          <value name="x">
            <shadow type="pins_exlcdh"></shadow>
          </value>
          <value name="y">
            <shadow type="pins_exlcdv"></shadow>
          </value>
          <value name="STAT">
            <shadow type="display_onoff">
            </shadow>
          </value>
        </block>
        <block type="display_bright_screen">
          <value name="x">
            <shadow type="pins_exlcdh"></shadow>
          </value>
        </block>
        <block type="display_get_screen_pixel"></block>
        <block type="display_get_screen_image"></block>
        <block type="display_blink_rate">
          <value name="x">
            <shadow type="math_number">
              <field name="NUM">2</field>
            </shadow>
          </value>
        </block>
        <block type="display_clear"></block>
      </category>
    </category>
    <category id="catSensor" colour="40">
      <block type="sensor_mixgo_extern_button_is_pressed">
        <value name="PIN">
          <shadow type="pins_digital_pin">
            <field name="PIN">0</field>
          </shadow>
        </value>
        <value name="STAT">
          <shadow type="inout_highlow">
          </shadow>
        </value>
      </block>
      <block type="sensor_mixgo_extern_button_was_pressed">
        <value name="PIN">
          <shadow type="pins_digital_pin">
            <field name="PIN">0</field>
          </shadow>
        </value>
        <value name="STAT">
          <shadow type="inout_highlow">
          </shadow>
        </value>
      </block>
      <block type="sensor_mixgo_extern_button_get_presses">
        <value name="PIN">
          <shadow type="pins_digital_pin">
            <field name="PIN">0</field>
          </shadow>
        </value>
        <value name="VAR">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
      </block>
      <!--       
      <block type="sensor_mixgo_pin_pressed">
        <value name="button">
          <shadow type="number1">
          </shadow>
        </value>
      </block> 
      -->
      <block type="sensor_mixgo_extern_pin_near">
        <value name="PIN">
          <shadow type="pins_analog_pin"></shadow>
        </value>
      </block>
      <block type="sensor_mixgo_extern_light">
        <value name="PIN">
          <shadow type="pins_analog_pin"></shadow>
        </value>
      </block>
      <block type="sensor_mixgo_extern_sound">
        <value name="PIN">
          <shadow type="pins_analog_pin"></shadow>
        </value>
      </block>
      <block type="sensor_lm35">
        <value name="PIN">
          <shadow type="pins_analog_pin"></shadow>
        </value>
      </block>
      <block type="sensor_dht11">
        <value name="PIN">
          <shadow type="pins_digital_pin"></shadow>
        </value>
      </block>
      <block type="sensor_ds18x20">
        <value name="PIN">
          <shadow type="pins_digital_pin"></shadow>
        </value>
      </block>
      <block type="HCSR04">
        <value name="PIN1">
          <shadow type="pins_digital_pin">
            <field name="PIN">0</field>
          </shadow>
        </value>
        <value name="PIN2">
          <shadow type="pins_digital_pin">
            <field name="PIN">4</field>
          </shadow>
        </value>
      </block>
      <block type="sensor_use_i2c_init">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">sensor</field>
          </shadow>
        </value>
        <value name="I2CSUB">
          <shadow type="variables_get">
            <field name="VAR">i2c</field>
          </shadow>
        </value>
      </block>
      <block type="sensor_mpu9250_get_acceleration">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">sensor</field>
          </shadow>
        </value>
      </block>
      <block type="sensor_mpu9250_get_magnetic">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">sensor</field>
          </shadow>
        </value>
      </block>
      <block type="sensor_mpu9250_get_gyro">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">sensor</field>
          </shadow>
        </value>
      </block>
      <block type="sensor_mpu9250_temperature">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">sensor</field>
          </shadow>
        </value>
      </block>
      <block type="sensor_bmp">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">sensor</field>
          </shadow>
        </value>
      </block>
      <block type="sensor_sht">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">sensor</field>
          </shadow>
        </value>
      </block>
      <block type="sensor_adxl345_get_acceleration">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">sensor</field>
          </shadow>
        </value>
      </block>
    </category>
    <category id="catActuator" colour="100">
      <block type="actuator_extern_led_bright">
        <value name="PIN">
          <shadow type="pins_pwm_pin">
          </shadow>
        </value>
        <value name="bright">
          <shadow type="ledswitch">
          </shadow>
        </value>
      </block>
      <block type="actuator_extern_get_led_bright">
        <value name="PIN">
          <shadow type="pins_pwm_pin">
          </shadow>
        </value>
      </block>
      <block type="actuator_extern_led_brightness">
        <value name="PIN">
          <shadow type="pins_pwm_pin">
          </shadow>
        </value>
        <value name="bright">
          <shadow type="math_number">
            <field name="NUM">1023</field>
          </shadow>
        </value>
      </block>
      <block type="esp32_music_pitch">
        <value name="PIN">
          <shadow type="pins_pwm_pin">
            <field name="PIN">0</field>
          </shadow>
        </value>
        <value name="pitch">
          <shadow type="pins_tone_notes">
            <field name="PIN">440</field>
          </shadow>
        </value>
      </block>
      <block type="esp32_music_pitch_with_time">
        <value name="PIN">
          <shadow type="pins_pwm_pin">
            <field name="PIN">0</field>
          </shadow>
        </value>
        <value name="pitch">
          <shadow type="pins_tone_notes">
            <field name="PIN">440</field>
          </shadow>
        </value>
        <value name="time">
          <shadow type="math_number">
            <field name="NUM">1000</field>
          </shadow>
        </value>
      </block>
      <block type="esp32_music_stop">
        <value name="PIN">
          <shadow type="pins_pwm_pin">
            <field name="PIN">0</field>
          </shadow>
        </value>
      </block>
      <block type="esp32_music_play_list">
        <value name="LIST">
          <shadow type="pins_playlist"></shadow>
        </value>
        <value name="PIN">
          <shadow type="pins_pwm_pin">
            <field name="PIN">0</field>
          </shadow>
        </value>
      </block>
      <block type="actuator_neopixel_init">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">rgb</field>
          </shadow>
        </value>
        <value name="PIN">
          <shadow type="pins_digital_pin">
            <field name="PIN">0</field>
          </shadow>
        </value>
        <value name="LEDCOUNT">
          <shadow type="math_number">
            <field name="NUM">4</field>
          </shadow>
        </value>
      </block>
      <block type="actuator_neopixel_rgb">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">rgb</field>
          </shadow>
        </value>
        <value name="_LED_">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="RVALUE">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="GVALUE">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="BVALUE">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="actuator_neopixel_write">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">rgb</field>
          </shadow>
        </value>
      </block>
      <block type="servo_move">
        <value name="PIN">
          <shadow type="pins_pwm_pin"></shadow>
        </value>
        <value name="DEGREE">
          <shadow type="math_number">
            <field name="NUM">100</field>
          </shadow>
        </value>
      </block>
    </category>
    <category id="catMonitor" colour="180">
      <block type="display_use_i2c_init">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">oled</field>
          </shadow>
        </value>
        <value name="I2CSUB">
          <shadow type="variables_get">
            <field name="VAR">i2c</field>
          </shadow>
        </value>
        <value name="row">
          <shadow type="math_number">
            <field name="NUM">128</field>
          </shadow>
        </value>
        <value name="column">
          <shadow type="math_number">
            <field name="NUM">64</field>
          </shadow>
        </value>
      </block>
      <block type="display_fill">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">oled</field>
          </shadow>
        </value>
      </block>
      <block type="display_draw_4strings">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">oled</field>
          </shadow>
        </value>
        <value name="Text_line1">
          <shadow type="text">
            <field name="TEXT">Example1</field>
          </shadow>
        </value>
        <value name="Text_line2">
          <shadow type="text">
            <field name="TEXT">Example2</field>
          </shadow>
        </value>
        <value name="Text_line3">
          <shadow type="text">
            <field name="TEXT">Example3</field>
          </shadow>
        </value>
        <value name="Text_line4">
          <shadow type="text">
            <field name="TEXT">Example4</field>
          </shadow>
        </value>
      </block>
      <block type="display_oled_drawPixel">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">oled</field>
          </shadow>
        </value>
        <value name="POS_X">
          <shadow type="math_number">
            <field name="NUM">64</field>
          </shadow>
        </value>
        <value name="POS_Y">
          <shadow type="math_number">
            <field name="NUM">32</field>
          </shadow>
        </value>
      </block>
      <block type="display_line">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">oled</field>
          </shadow>
        </value>
        <value name="x">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <value name="y">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="length">
          <shadow type="math_number">
            <field name="NUM">20</field>
          </shadow>
        </value>
      </block>
      <block type="display_line_arbitrarily">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">oled</field>
          </shadow>
        </value>
        <value name="x1">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="y1">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="x2">
          <shadow type="math_number">
            <field name="NUM">40</field>
          </shadow>
        </value>
        <value name="y2">
          <shadow type="math_number">
            <field name="NUM">40</field>
          </shadow>
        </value>
      </block>
      <block type="display_rect">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">oled</field>
          </shadow>
        </value>
        <value name="x">
          <shadow type="math_number">
            <field name="NUM">20</field>
          </shadow>
        </value>
        <value name="y">
          <shadow type="math_number">
            <field name="NUM">20</field>
          </shadow>
        </value>
        <value name="width">
          <shadow type="math_number">
            <field name="NUM">20</field>
          </shadow>
        </value>
        <value name="height">
          <shadow type="math_number">
            <field name="NUM">20</field>
          </shadow>
        </value>
      </block>
      <block type="display_circle">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">oled</field>
          </shadow>
        </value>
        <value name="x">
          <shadow type="math_number">
            <field name="NUM">20</field>
          </shadow>
        </value>
        <value name="y">
          <shadow type="math_number">
            <field name="NUM">20</field>
          </shadow>
        </value>
        <value name="r">
          <shadow type="math_number">
            <field name="NUM">20</field>
          </shadow>
        </value>
      </block>
      <block type="display_triangle">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">oled</field>
          </shadow>
        </value>
        <value name="x0">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="y0">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="x1">
          <shadow type="math_number">
            <field name="NUM">10</field>
          </shadow>
        </value>
        <value name="y1">
          <shadow type="math_number">
            <field name="NUM">20</field>
          </shadow>
        </value>
        <value name="x2">
          <shadow type="math_number">
            <field name="NUM">20</field>
          </shadow>
        </value>
        <value name="y2">
          <shadow type="math_number">
            <field name="NUM">10</field>
          </shadow>
        </value>
      </block>
      <block type="display_oled_showBitmap">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">oled</field>
          </shadow>
        </value>
        <value name="START_X">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="START_Y">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="WIDTH">
          <shadow type="math_number">
            <field name="NUM">128</field>
          </shadow>
        </value>
        <value name="HEIGHT">
          <shadow type="math_number">
            <field name="NUM">64</field>
          </shadow>
        </value>
        <value name="bitmap_name">
          <shadow type="variables_get">
            <field name="VAR">bitmap</field>
          </shadow>
        </value>
      </block>
      <block type="display_tm_use_i2c_init">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">disp</field>
          </shadow>
        </value>
        <value name="I2CSUB">
          <shadow type="variables_get">
            <field name="VAR">i2c</field>
          </shadow>
        </value>
      </block>
      <block type="display_tm1650_power">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">disp</field>
          </shadow>
        </value>
      </block>
      <block type="display_tm1650_show_num">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">disp</field>
          </shadow>
        </value>
        <value name="VALUE">
          <shadow type="math_number">
            <field name="NUM">2333</field>
          </shadow>
        </value>
      </block>
      <block type="display_tm1650_show_dot">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">disp</field>
          </shadow>
        </value>
        <value name="NO">
          <shadow type="pins_digital_dot"></shadow>
        </value>
        <value name="STAT">
          <shadow type="display_onoff">
          </shadow>
        </value>
      </block>
    </category>
    <category id="catFile" colour="0">
      <block type="storage_open_file_with_os">
        <value name="fn">
          <shadow type="text">
            <field name="TEXT">readme.txt</field>
          </shadow>
        </value>
      </block>
      <block type="storage_fileopen">
        <value name="FILENAME">
          <shadow type="text">
            <field name="TEXT">filename.txt</field>
          </shadow>
        </value>
        <value name="FILE">
          <shadow type="variables_get">
            <field name="VAR">f</field>
          </shadow>
        </value>
      </block>
      <block type="storage_file_write">
        <value name="data">
          <shadow type="text">
            <field name="TEXT">Mixly</field>
          </shadow>
        </value>
        <value name="FILE">
          <shadow type="variables_get">
            <field name="VAR">f</field>
          </shadow>
        </value>
      </block>
      <block type="storage_get_contents_without_para">
        <value name="FILE">
          <shadow type="variables_get">
            <field name="VAR">f</field>
          </shadow>
        </value>
      </block>
      <block type="storage_get_contents">
        <value name="FILE">
          <shadow type="variables_get">
            <field name="VAR">f</field>
          </shadow>
        </value>
        <value name="SIZE">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="storage_can_write_ornot">
        <value name="FILE">
          <shadow type="variables_get">
            <field name="VAR">f</field>
          </shadow>
        </value>
      </block>
      <block type="storage_get_filename">
        <value name="FILE">
          <shadow type="variables_get">
            <field name="VAR">f</field>
          </shadow>
        </value>
      </block>
      <block type="storage_close_file">
        <value name="FILE">
          <shadow type="variables_get">
            <field name="VAR">f</field>
          </shadow>
        </value>
      </block>
      <block type="storage_list_all_files"> </block>
      <block type="storage_get_current_dir"> </block>
      <block type="storage_change_dir">
        <value name="FILE">
          <shadow type="text">
            <field name="TEXT">path</field>
          </shadow>
        </value>
      </block>
      <block type="storage_make_dir">
        <value name="PATH">
          <shadow type="text">
            <field name="TEXT">path</field>
          </shadow>
        </value>
      </block>
      <block type="storage_delete_file">
        <value name="FILE">
          <shadow type="text">
            <field name="TEXT">filename.txt</field>
          </shadow>
        </value>
      </block>
      <block type="storage_rename">
        <value name="FILE">
          <shadow type="text">
            <field name="TEXT">srcname.txt</field>
          </shadow>
        </value>
        <value name="NEWFILE">
          <shadow type="text">
            <field name="TEXT">dstname.txt</field>
          </shadow>
        </value>
      </block>
      <block type="storage_get_file_size">
        <value name="FILE">
          <shadow type="text">
            <field name="TEXT">filename.txt</field>
          </shadow>
        </value>
      </block>
      <block type="storage_is_file">
        <value name="FILE">
          <shadow type="text">
            <field name="TEXT">path</field>
          </shadow>
        </value>
      </block>
      <block type="storage_file_tell">
        <value name="FILE">
          <shadow type="variables_get">
            <field name="VAR">f</field>
          </shadow>
        </value>
      </block>
      <block type="storage_file_seek">
        <value name="FILE">
          <shadow type="variables_get">
            <field name="VAR">f</field>
          </shadow>
        </value>
        <value name="SIZE">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
    </category>
    <category id="catGroup" colour="140">
      <block type="communicate_ir_recv">
        <value name="PIN">
          <shadow type="pins_digital_pin">
            <field name="PIN">0</field>
          </shadow>
        </value>
        <value name="SUB">
          <shadow type="factory_block_return">
            <field name="VALUE">cb</field>
          </shadow>
        </value>
      </block>
      <block type="procedures_defnoreturn">
        <mutation>
          <arg name="data"></arg>
          <arg name="addr"></arg>
        </mutation>
        <field name="NAME">cb</field>
        <statement name="STACK">
          <block type="controls_if">
            <value name="IF0">
              <block type="logic_compare">
                <field name="OP">EQ</field>
                <value name="A">
                  <block type="variables_get">
                    <field name="VAR">data</field>
                  </block>
                </value>
                <value name="B">
                  <block type="math_number">
                    <field name="NUM">1</field>
                  </block>
                </value>
              </block>
            </value>
          </block>
        </statement>
      </block>
      <block type="communicate_i2c_init">
        <value name="SUB">
          <shadow type="variables_get">
            <field name="VAR">i2c</field>
          </shadow>
        </value>
        <value name="TX">
          <shadow type="pins_digital_pin">
            <field name="PIN">22</field>
          </shadow>
        </value>
        <value name="RX">
          <shadow type="pins_digital_pin">
            <field name="PIN">21</field>
          </shadow>
        </value>
        <value name="freq">
          <shadow type="math_number">
            <field name="NUM">100000</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_i2c_read">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">i2c</field>
          </shadow>
        </value>
        <value name="address">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="data">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_i2c_write">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">i2c</field>
          </shadow>
        </value>
        <value name="address">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="data">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_i2c_scan">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">i2c</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_i2c_master_read">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">i2c</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_i2c_available">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">i2c</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_spi_init">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">spi</field>
          </shadow>
        </value>
        <value name="freq">
          <shadow type="math_number">
            <field name="NUM">200000</field>
          </shadow>
        </value>
        <value name="polarity">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
        <value name="phase">
          <shadow type="math_number">
            <field name="NUM">0</field>
          </shadow>
        </value>
        <value name="sck">
          <shadow type="pins_digital_pin">
            <field name="PIN">0</field>
          </shadow>
        </value>
        <value name="mosi">
          <shadow type="pins_digital_pin">
            <field name="PIN">4</field>
          </shadow>
        </value>
        <value name="miso">
          <shadow type="pins_digital_pin">
            <field name="PIN">5</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_spi_set">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">spi</field>
          </shadow>
        </value>
        <value name="data">
          <shadow type="math_number">
            <field name="NUM">200000</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_spi_buffer">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">buf</field>
          </shadow>
        </value>
        <value name="data">
          <shadow type="math_number">
            <field name="NUM">50</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_spi_read">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">spi</field>
          </shadow>
        </value>
        <value name="data">
          <shadow type="math_number">
            <field name="NUM">10</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_spi_read_output">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">spi</field>
          </shadow>
        </value>
        <value name="data">
          <shadow type="math_number">
            <field name="NUM">10</field>
          </shadow>
        </value>
        <value name="val">
          <shadow type="math_number">
            <field name="NUM">0xff</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_spi_readinto">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">spi</field>
          </shadow>
        </value>
        <value name="data">
          <shadow type="variables_get">
            <field name="VAR">buf</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_spi_readinto_output">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">spi</field>
          </shadow>
        </value>
        <value name="data">
          <shadow type="variables_get">
            <field name="VAR">buf</field>
          </shadow>
        </value>
        <value name="val">
          <shadow type="math_number">
            <field name="NUM">0xff</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_spi_write">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">spi</field>
          </shadow>
        </value>
        <value name="data">
          <shadow type="text">
            <field name="TEXT">12345</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_spi_write_readinto">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">spi</field>
          </shadow>
        </value>
        <value name="data">
          <shadow type="text">
            <field name="TEXT">12345</field>
          </shadow>
        </value>
        <value name="val">
          <shadow type="variables_get">
            <field name="VAR">buf</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_ow_init">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">ow</field>
          </shadow>
        </value>
        <value name="BUS">
          <shadow type="pins_digital_pin">
            <field name="PIN">12</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_ow_scan">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">ow</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_ow_read">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">ow</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_ow_write">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">ow</field>
          </shadow>
        </value>
        <value name="byte">
          <shadow type="text">
            <field name="TEXT">12345</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_ow_select">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">ow</field>
          </shadow>
        </value>
        <value name="byte">
          <shadow type="text">
            <field name="TEXT">12345</field>
          </shadow>
        </value>
      </block>
      <block type="communicate_ow_reset">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">ow</field>
          </shadow>
        </value>
      </block>
    </category>
    <category id="catNetwork" colour="225">
      <block type="iot_wifi_connect">
        <value name="WIFINAME">
          <shadow type="text">
            <field name="TEXT">wifiname</field>
          </shadow>
        </value>
        <value name="PASSWORD">
          <shadow type="text">
            <field name="TEXT">wifipassword</field>
          </shadow>
        </value>
      </block>
      <block type="network_init">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">wlan</field>
          </shadow>
        </value>
      </block>
      <block type="network_open">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">wlan</field>
          </shadow>
        </value>
      </block>
      <block type="network_is_active">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">wlan</field>
          </shadow>
        </value>
      </block>
      <block type="network_scan">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">wlan</field>
          </shadow>
        </value>
      </block>
      <block type="network_connect">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">wlan</field>
          </shadow>
        </value>
        <value name="id">
          <shadow type="text">
            <field name="TEXT">127.16.0.8</field>
          </shadow>
        </value>
        <value name="password">
          <shadow type="text">
            <field name="TEXT">01234567</field>
          </shadow>
        </value>
      </block>
      <block type="network_wifi_connect">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">wlan</field>
          </shadow>
        </value>
      </block>
      <block type="network_get_connect">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">wlan</field>
          </shadow>
        </value>
      </block>
      <block type="network_stop">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">wlan</field>
          </shadow>
        </value>
      </block>
      <block type="network_get_wifi">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">wlan</field>
          </shadow>
        </value>
      </block>
      <block type="network_ap_connect">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">wlan</field>
          </shadow>
        </value>
        <value name="essid">
          <shadow type="text">
            <field name="TEXT">127.16.0.8</field>
          </shadow>
        </value>
        <value name="channel">
          <shadow type="math_number">
            <field name="NUM">1</field>
          </shadow>
        </value>
      </block>
      <block type="procedures_defreturn">
        <field name="NAME">connect_wifi</field>
        <statement name="STACK">
          <block type="variables_global">
            <value name="VAR">
              <block type="variables_get">
                <field name="VAR">wlan</field>
              </block>
            </value>
            <next>
              <block type="network_init">
                <field name="mode">AP</field>
                <value name="VAR">
                  <shadow type="variables_get">
                    <field name="VAR">wlan</field>
                  </shadow>
                </value>
                <next>
                  <block type="network_open">
                    <field name="op">True</field>
                    <value name="VAR">
                      <shadow type="variables_get">
                        <field name="VAR">wlan</field>
                      </shadow>
                    </value>
                    <next>
                      <block type="network_ap_connect">
                        <value name="VAR">
                          <shadow type="variables_get">
                            <field name="VAR">wlan</field>
                          </shadow>
                        </value>
                        <value name="essid">
                          <shadow type="text">
                            <field name="TEXT">SmallCabbage</field>
                          </shadow>
                        </value>
                        <value name="channel">
                          <shadow type="math_number">
                            <field name="NUM">1</field>
                          </shadow>
                        </value>
                        <next>
                          <block type="controls_whileUntil">
                            <field name="MODE">WHILE</field>
                            <value name="BOOL">
                              <shadow type="logic_boolean">
                                <field name="BOOL">TRUE</field>
                              </shadow>
                              <block type="logic_compare">
                                <field name="OP">EQ</field>
                                <value name="A">
                                  <block type="network_get_connect">
                                    <field name="mode">0</field>
                                    <value name="VAR">
                                      <shadow type="variables_get">
                                        <field name="VAR">wlan</field>
                                      </shadow>
                                    </value>
                                  </block>
                                </value>
                                <value name="B">
                                  <block type="text">
                                    <field name="TEXT">0.0.0.0</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                            <statement name="DO">
                              <block type="base_delay">
                                <field name="Time">ms</field>
                                <value name="DELAY_TIME">
                                  <shadow type="math_number">
                                    <field name="NUM">1000</field>
                                  </shadow>
                                </value>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </statement>
        <value name="RETURN">
          <block type="logic_boolean">
            <field name="BOOL">TRUE</field>
          </block>
        </value>
      </block>
      <block type="network_socket_init">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">s</field>
          </shadow>
        </value>
      </block>
      <block type="network_socket_bind">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">s</field>
          </shadow>
        </value>
        <value name="address">
          <block type="tuple_create_with_noreturn" inline="true">
            <mutation items="2"></mutation>
            <value name="ADD0">
              <block type="text">
                <field name="TEXT">0.0.0.0</field>
              </block>
            </value>
            <value name="ADD1">
              <block type="math_number">
                <field name="NUM">80</field>
              </block>
            </value>
          </block>
        </value>
      </block>
      <block type="network_socket_connect">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">s</field>
          </shadow>
        </value>
        <value name="address">
          <block type="tuple_create_with_noreturn" inline="true">
            <mutation items="2"></mutation>
            <value name="ADD0">
              <block type="text">
                <field name="TEXT">192.168.0.1</field>
              </block>
            </value>
            <value name="ADD1">
              <block type="math_number">
                <field name="NUM">80</field>
              </block>
            </value>
          </block>
        </value>
      </block>
      <block type="network_socket_listen">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">s</field>
          </shadow>
        </value>
        <value name="queue">
          <shadow type="math_number">
            <field name="NUM">5</field>
          </shadow>
        </value>
      </block>
      <block type="network_socket_accept">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">s</field>
          </shadow>
        </value>
      </block>
      <block type="network_socket_receive">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">conn</field>
          </shadow>
        </value>
        <value name="size">
          <shadow type="math_number">
            <field name="NUM">1024</field>
          </shadow>
        </value>
      </block>
      <block type="network_socket_send">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">conn</field>
          </shadow>
        </value>
        <value name="content">
          <shadow type="variables_get">
            <field name="VAR">response</field>
          </shadow>
        </value>
      </block>
      <block type="network_socket_receive_from">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">conn</field>
          </shadow>
        </value>
        <value name="size">
          <shadow type="math_number">
            <field name="NUM">1024</field>
          </shadow>
        </value>
      </block>
      <block type="network_socket_send_to">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">conn</field>
          </shadow>
        </value>
        <value name="content">
          <shadow type="variables_get">
            <field name="VAR">response</field>
          </shadow>
        </value>
        <value name="address">
          <shadow type="tuple_create_with_noreturn" inline="true">
            <mutation items="2"></mutation>
            <value name="ADD0">
              <shadow type="text">
                <field name="TEXT">127.0.0.1</field>
              </shadow>
            </value>
            <value name="ADD1">
              <shadow type="math_number">
                <field name="NUM">80</field>
              </shadow>
            </value>
          </shadow>
        </value>
      </block>
      <block type="network_socket_close">
        <value name="VAR">
          <shadow type="variables_get">
            <field name="VAR">conn</field>
          </shadow>
        </value>
      </block>
    </category>
    <category id="catIot">
      <category id="catOnenet" colour="#24c48e">
        <block type="iot_onenet_connect">
          <value name="VAR">
            <shadow type="variables_get">
              <field name="VAR">c</field>
            </shadow>
          </value>
          <value name="SUB">
            <shadow type="factory_block_return">
              <field name="VALUE">sub_cb</field>
            </shadow>
          </value>
          <value name="CLIENT">
            <shadow type="text">
              <field name="TEXT">31444082</field>
            </shadow>
          </value>
          <value name="SERVER">
            <shadow type="text">
              <field name="TEXT">183.230.40.39</field>
            </shadow>
          </value>
          <value name="USERNAME">
            <shadow type="text">
              <field name="TEXT">141092</field>
            </shadow>
          </value>
          <value name="PASSWORD">
            <shadow type="text">
              <field name="TEXT">61n63JySRowo13ZLDBKw6y896E0=</field>
            </shadow>
          </value>
          <value name="TOPIC">
            <shadow type="text">
              <field name="TEXT">MixlyRobot</field>
            </shadow>
          </value>
        </block>
        <block type="procedures_defnoreturn">
          <mutation>
            <arg name="topic"></arg>
            <arg name="msg"></arg>
          </mutation>
          <field name="NAME">sub_cb</field>
          <statement name="STACK">
            <block type="controls_if">
              <value name="IF0">
                <block type="logic_compare">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="variables_get">
                      <field name="VAR">msg</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="text_to_number">
                      <field name="TOWHAT">b</field>
                      <value name="VAR">
                        <shadow type="text">
                          <field name="TEXT">on</field>
                        </shadow>
                      </value>
                    </block>
                  </value>
                </block>
              </value>
            </block>
          </statement>
        </block>
        <block type="iot_onenet_publish">
          <value name="VAR">
            <shadow type="variables_get">
              <field name="VAR">c</field>
            </shadow>
          </value>
        </block>
        <block type="dicts_create_with" inline="true">
          <mutation items="1"></mutation>
          <field name="VAR">iot_dict</field>
          <field name="KEY0">"tc"</field>
          <value name="ADD0">
            <block type="inout_pin_pressed">
              <value name="pin">
                <shadow type="pins_touch">
                  <field name="PIN">tc0</field>
                </shadow>
              </value>
            </block>
          </value>
          <next>
            <block type="iot_onenet_publish_dict">
              <value name="VAR">
                <shadow type="variables_get">
                  <field name="VAR">c</field>
                </shadow>
              </value>
              <value name="DICT">
                <shadow type="variables_get">
                  <field name="VAR">iot_dict</field>
                </shadow>
              </value>
            </block>
        </block>
        <block type="iot_onenet_disconnect">
          <value name="VAR">
            <shadow type="variables_get">
              <field name="VAR">c</field>
            </shadow>
          </value>
        </block>
        <block type="iot_onenet_check">
          <value name="VAR">
            <shadow type="variables_get">
              <field name="VAR">c</field>
            </shadow>
          </value>
        </block>
      </category>
      <category name="Blynk IoT" colour="#24c48e">
        <block type="mpython_blynk_setup">
          <value name="server">
            <shadow type="text">
              <field name="TEXT">blynk.mixly.org</field>
            </shadow>
          </value>
          <value name="port">
            <shadow type="math_number">
              <field name="NUM">8080</field>
            </shadow>
          </value>
          <value name="auth">
            <shadow type="text">
              <field name="TEXT">AUTH TOKEN</field>
            </shadow>
          </value>
        </block>
        <block type="mpython_blynk_app_data">
          <value name="virtual_pin">
            <shadow type="math_number">
              <field name="NUM">0</field>
            </shadow>
          </value>
          <value name="virtual_pin_val">
            <block type="variables_get">
              <field name="VAR">_value</field>
            </block>
          </value>
          <statement name="DO">
          </statement>
        </block>
        <block type="mpython_blynktimer">
          <value name="Num">
            <shadow type="math_number">
              <field name="NUM">0</field>
            </shadow>
          </value>
          <value name="period">
            <shadow type="math_number">
              <field name="NUM">2</field>
            </shadow>
          </value>
        </block>
        <block type="mpython_blynk_get_timers"></block>
        <block type="mpython_blynk_stop_timers">
          <value name="timer_num">
            <shadow type="math_number">
              <field name="NUM">0</field>
            </shadow>
          </value>
        </block>
        <block type="mpython_blynk_run"></block>
        <block type="mpython_blynktimer_run"></block>
        <block type="mpython_blynk_sensor_data_to_app">
          <value name="sensor_data">
            <shadow type="math_number">
              <field name="NUM">0</field>
            </shadow>
          </value>
          <value name="virtual_pin">
            <shadow type="math_number">
              <field name="NUM">0</field>
            </shadow>
          </value>
        </block>
        <block type="mpython_blynk_app_notify">
          <value name="notification">
            <shadow type="text">
              <field name="TEXT">notify</field>
            </shadow>
          </value>
        </block>
        <block type="mpython_blynk_on_connected">
        </block>
        <block type="mpython_blynk_on_disconnected">
        </block>
        <block type="mpython_blynk_sync_virtual">
          <value name="virtual_pin">
            <shadow type="math_number">
              <field name="NUM">0</field>
            </shadow>
          </value>
        </block>
        <block type="mpython_blynk_email">
          <value name="TargetEmail">
            <shadow type="text">
              <field name="TEXT">Your Target Email</field>
            </shadow>
          </value>
          <value name="subject">
            <shadow type="text">
              <field name="TEXT">subject</field>
            </shadow>
          </value>
          <value name="body">
            <shadow type="text">
              <field name="TEXT">body</field>
            </shadow>
          </value>
        </block>
        <block type="mpython_blynk_set_property">
          <value name="attribute_name">
            <shadow type="text">
              <field name="TEXT">color</field>
            </shadow>
          </value>
          <value name="attribute_value">
            <shadow type="text">
              <field name="TEXT">#FF0000</field>
            </shadow>
          </value>
        </block>
      </category>
      <category id="catMixIO" colour="#24c48e">
        <block type="iot_mixio_connect">
          <value name="VAR">
            <shadow type="variables_get">
              <field name="VAR">c</field>
            </shadow>
          </value>
          <value name="SUB">
            <shadow type="factory_block_return">
              <field name="VALUE">sub_cb</field>
            </shadow>
          </value>
          <value name="SERVER">
            <shadow type="text">
              <field name="TEXT">mixio.mixly.org</field>
            </shadow>
          </value>
          <value name="USERNAME">
            <shadow type="text">
              <field name="TEXT">username</field>
            </shadow>
          </value>
          <value name="PASSWORD">
            <shadow type="text">
              <field name="TEXT">password</field>
            </shadow>
          </value>
          <value name="PROJECT">
            <shadow type="text">
              <field name="TEXT">MyProject</field>
            </shadow>
          </value>
        </block>
        <block type="procedures_defnoreturn">
          <mutation>
            <arg name="topic"></arg>
            <arg name="msg"></arg>
          </mutation>
          <field name="NAME">sub_cb</field>
          <statement name="STACK">
            <block type="controls_if">
              <value name="IF0">
                <block type="logic_compare">
                  <field name="OP">EQ</field>
                  <value name="A">
                    <block type="variables_get">
                      <field name="VAR">msg</field>
                    </block>
                  </value>
                  <value name="B">
                    <block type="text_to_number">
                      <field name="TOWHAT">b</field>
                      <value name="VAR">
                        <shadow type="text">
                          <field name="TEXT">on</field>
                        </shadow>
                      </value>
                    </block>
                  </value>
                </block>
              </value>
            </block>
          </statement>
        </block>
        <block type="IOT_MIXIO_PUBLISH">
          <value name="VAR">
            <shadow type="variables_get">
              <field name="VAR">c</field>
            </shadow>
          </value>
          <value name="TOPIC">
            <shadow type="text">
              <field name="TEXT">topic</field>
            </shadow>
          </value>
          <value name="MSG">
            <shadow type="text">
              <field name="TEXT">msg</field>
            </shadow>
          </value>
        </block>
        <block type="IOT_MIXIO_SUBSCRIBE">
          <value name="VAR">
            <shadow type="variables_get">
              <field name="VAR">c</field>
            </shadow>
          </value>
          <value name="TOPIC">
            <shadow type="text">
              <field name="TEXT">topic</field>
            </shadow>
          </value>
        </block>
        <block type="iot_mixio_connect_only">
          <value name="VAR">
            <shadow type="variables_get">
              <field name="VAR">c</field>
            </shadow>
          </value>
        </block>
        <block type="iot_mixio_disconnect">
          <value name="VAR">
            <shadow type="variables_get">
              <field name="VAR">c</field>
            </shadow>
          </value>
        </block>
        <block type="iot_mixio_check">
          <value name="VAR">
            <shadow type="variables_get">
              <field name="VAR">c</field>
            </shadow>
          </value>
        </block>
        <block type="iot_mixio_format_topic">
          <value name="VAR">
            <shadow type="variables_get">
              <field name="VAR">topic</field>
            </shadow>
          </value>
        </block>
        <block type="iot_mixio_format_msg">
          <value name="VAR">
            <shadow type="variables_get">
              <field name="VAR">msg</field>
            </shadow>
          </value>
        </block>
      </category>
    </category>
    <category id="catFactory" name="Factory" colour="#777777">
      <block type="factory_import"></block>
      <block type="factory_from_import"></block>
      <block type="factory_function_noreturn"></block>
      <block type="factory_function_return"></block>
      <block type="factory_declare"></block>
      <block type="factory_callMethod_noreturn"></block>
      <block type="factory_callMethod_return"></block>
      <block type="factory_block"></block>
      <block type="factory_block_return"></block>
      <block type="factory_block_with_textarea"></block>
      <block type="factory_block_return_with_textarea"></block>
    </category>
  </xml>
  <script>
    if (company_block != null) {
      $('#toolbox').append(company_block);
    }
    if (myblock != null) {
      $('#toolbox').append(myblock);
    }
  </script>
  <script type="text/javascript" src="../common/library-init.js"></script>
</body>

</html>